package cn.silver.module.configuration.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import cn.silver.framework.mybatis.domain.BusEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 参数配置表 sys_config
 *
 * @author Silver Zhou
 */

@Data
@NoArgsConstructor
@Table(name = "sys_param")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysParam", title = "系统参数对象")
public class SysParam extends BusEntity {

    /**
     * 参数键值
     */
    @Schema(title = "参数值")
    private String value;

    /**
     * 系统内置（Y是 N否）
     */
    @Schema(title = "系统内置")
    private Boolean built;

    @Override
    public void preInsert() {
        super.preInsert();
        if (this.built == null) {
            this.built = false;
        }
    }

    @Override
    public void preUpdate() {
        super.preUpdate();
    }
}
